package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @author liuyaning
 * @version 1.0
 * @date 2021/7/30 17:35
 */
public interface AdSensitiveService extends IService<AdSensitive> {

    /**
     * 分页获取关键词列表
     * @param sensitiveDto
     * @return
     */
    ResponseResult list(SensitiveDto sensitiveDto);

    /**
     * 新增敏感词
     * @param adSensitive
     * @return
     */
    ResponseResult insert(AdSensitive adSensitive);
    /**
     * 更新敏感词
     * @param adSensitive
     * @return
     */
    ResponseResult update(AdSensitive adSensitive);

    /**
     * 删除敏感词
     * @param id
     * @return
     */
    ResponseResult deleteById(Integer id);
}
